JsPromiseHandler

public interface JsPromiseHandler implements JsFunctionCallback

A JsFunctionCallback that is used as a JavaScript Promise handler.

If the handler returns a result then the subsequent promise is fulfilled with this result. If the handler throws an exception then the subsequent promise is rejected with this exception. If the handler returns a promise, then a future result or error from this promise is passed to the subsequent promise.

See also

Functions

Link copied to clipboard
public abstract Object invoke(Array<Object> args)
Invoked when the corresponding function is called on the JavaScript side.